﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Demo : MonoBehaviour
{

    Vector3 beginLocalScale;
    ProcessMusic processMusic;

    void Start()
    {
        beginLocalScale = transform.localScale;
        processMusic = new ProcessMusic();
        processMusic.Init();
    }


    void Update()
    {
        processMusic.OnUpdate();
        transform.localScale = beginLocalScale * (1 + processMusic.AudioAmp);
    }
}
